import requests

url = 'https://www.pxc.jx.cn/'  # 萍乡学院官网地址
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'}

response = requests.get(url, headers=headers)
response.encoding = 'utf-8'  # 设置编码为utf-8

with open('D:\\萍乡学院.html', 'w', encoding='utf-8') as f:
    f.write(response.text)
